$PROB RUN# 1005 ESTIMATE PK W/COVARIATE RELATIONSHIPS
$INPUT C ID DV AMT II ADDL TIME RATE HT WT CLCR SEX AGE
$DATA  ../../data/1005.csv IGNORE=C 
$SUB ADVAN1 TRANS2
$PK
TVCL=THETA(1)
CL=TVCL*EXP(ETA(1))
TVV=THETA(2)
V=TVV*EXP(ETA(2))
S1=V
$ERROR
Y=F + F*ERR(1) +ERR(2)
IPRED=F
$THETA
 (0, 13) ;1. CL
 (0, 75);2. V
$OMEGA BLOCK(2)
(0.04) ;1. CL VAR
(0.02) (0.04) ;2. V VAR
$SIGMA 
0.04
1
;$MSFI=./1005.msf
$ESTIMATION MAXEVAL=9999 PRINT=10 POSTHOC MSFO=./1005.msf
$TABLE ID TIME EVID IPRED CWRES NOPRINT ONEHEADER FILE=./1005.tab
$TABLE ID CL V EVID ETA1 ETA2 NOPRINT ONEHEADER FILE=./1005par.tab

